﻿<%@ Assembly Name="$SharePoint.Project.AssemblyFullName$" %>
<%@ Import Namespace="Microsoft.SharePoint.ApplicationPages" %>
<%@ Register TagPrefix="SharePoint" Namespace="Microsoft.SharePoint.WebControls"
    Assembly="Microsoft.SharePoint, Version=14.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %>
<%@ Register TagPrefix="Utilities" Namespace="Microsoft.SharePoint.Utilities" Assembly="Microsoft.SharePoint, Version=14.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %>
<%@ Register TagPrefix="asp" Namespace="System.Web.UI" Assembly="System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" %>
<%@ Import Namespace="Microsoft.SharePoint" %>
<%@ Assembly Name="Microsoft.Web.CommandUI, Version=14.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %>

<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="ExporttoCSV.aspx.cs" Inherits="ExportListDatatoCSV.Layouts.ExportListDatatoCSV.ExporttoCSV"
    DynamicMasterPageFile="~masterurl/default.master" %>

<%@ Register TagPrefix="wssuc" TagName="ButtonSection" Src="~/_controltemplates/ButtonSection.ascx" %>
<asp:Content ID="PageHead" ContentPlaceHolderID="PlaceHolderAdditionalPageHead" runat="server">
    <style>
        .LeftCol
        {
            padding-top: 10px;
            padding-left: 5px;
            padding-bottom: 5px;
            background-color: White;
            width: 400px;
            text-align: left;
        }
        .RightCol
        {
            background-color: #F1F1F2;
            text-align: left;
            padding-top: 10px;
            padding-left: 5px;
            padding-bottom: 5px;
        }
        
        .SubLeftCol
        {
            padding-top: 10px;
            padding-left: 5px;
            padding-bottom: 5px;
            background-color: White;
            width: 400px;
            text-align: left;
        }
        
        .SubRightCol
        {
            background-color: #F1F1F2;
            text-align: left;
            padding-top: 10px;
            padding-left: 5px;
            padding-bottom: 5px;
        }
    </style>
    <script type='text/javascript'>        _spOriginalFormAction = document.forms[0].action; _spSuppressFormOnSubmitWrapper = true;</script>
</asp:Content>
<asp:Content ID="Main" ContentPlaceHolderID="PlaceHolderMain" runat="server">
    <table cellpadding="0" width="100%" cellspacing="0" width="100%">
        <tr>
            <td colspan="2">
                <asp:Label ID="lbError" runat="server" style="background-color :Red;color:White;" visible="false"></asp:Label>
            </td>
        </tr>
        <tr>
            <td class="SubLeftCol">
                <b>
                    <SharePoint:EncodedLiteral ID="EncodedLiteral3" runat="server" Text="Available Lists"
                        EncodeMethod='HtmlEncode' />
                </b>
            </td>
            <td class="SubRightCol">
                <asp:DropDownList ID="ddlList" runat="server">
                </asp:DropDownList>
            </td>
        </tr>
        <tr>
            <td height="2" class="ms-sectionline" colspan="2">
            </td>
        </tr>
        <wssuc:ButtonSection runat="server">
            <template_buttons>
            <asp:Button runat="server" class="ms-ButtonHeightWidth" OnClick="BtnSubmit_Click" Text="Export" id="BtnSubmit"/>
		</template_buttons>
        </wssuc:ButtonSection>
    </table>
</asp:Content>
<asp:Content ID="PageTitle" ContentPlaceHolderID="PlaceHolderPageTitle" runat="server">
    Export to CSV
</asp:Content>
<asp:Content ID="PageTitleInTitleArea" ContentPlaceHolderID="PlaceHolderPageTitleInTitleArea"
    runat="server">
</asp:Content>
